import request from '@/utils/request'

// 查询技师工资列表
export function listWage(query) {
  return request({
    url: '/system/technician/wage/list',
    method: 'get',
    params: query
  })
}

// 查询技师工资详细
export function getWage(id) {
  return request({
    url: '/system/technician/wage/' + id,
    method: 'get'
  })
}

// 新增技师工资
export function addWage(data) {
  return request({
    url: '/system/wage',
    method: 'post',
    data: data
  })
}

// 修改技师工资
export function updateWage(data) {
  return request({
    url: '/system/technician/wage',
    method: 'put',
    data: data
  })
}

// 删除技师工资
export function delWage(id) {
  return request({
    url: '/system/wage/' + id,
    method: 'delete'
  })
}
